import {Component} from '@tarojs/taro'
import { AtActivityIndicator } from 'taro-ui'
import {connect} from '@tarojs/redux'
import './index.less'

@connect(({login, loading}) => ({
  login,
  loading
}))

export default class Login extends Component {

  config = {
    navigationBarTitleText: '登录ing'
  }

  constructor(props) {
    super(props)
    this.state = {
      current: 0
    }
  }

  componentWillMount() {
  }

  componentDidMount() {
    const {dispatch} = this.props;
    dispatch({
      type: 'login/loginMini',
    })
  }

  componentWillUnmount() {
  }

  componentDidShow() {
  }

  componentDidHide() {
  }

  render() {
    const {
      login
    } = this.props;
    const {
    } = login;
    return (
      <AtActivityIndicator size={100} mode='center'></AtActivityIndicator>
    )
  }
}
